#ifndef  PALETTE_H
#define PALETTE_H

#include <QDialog>
#include<QComboBox>
#include<QLabel>
#include<QTextEdit>
#include<QPushButton>
#include<QLineEdit>
class Palette : public QDialog
{
    Q_OBJECT

public:
    Palette(QWidget *parent = 0);
    ~Palette();
    void createCtrlFrame();//完成窗体左半部分的颜色区创建
    void createContentFrame();//完成窗体右半部分的创建
    void fillColorList(QComboBox *);//完成向颜色下拉框中插入颜色的工作
private slots:
    void showWindow();
    void showWindowText();
    void showButton();
    void showButtonText();
    void showBase();
private:
    QFrame *ctrlFrame;//颜色选择面板

    QLabel *windowLabel;
    QComboBox *windowComboBox;
    QLabel *windowTextLabel;
    QComboBox *windowTextComboBox;
    QLabel *buttonLabel;
    QComboBox *buttonComboBox;
    QLabel *buttonTextLabel;
    QComboBox *buttonTextComboBox;
    QLabel *baseLabel;
    QComboBox *baseComboBox;
    QFrame *contentFrame;//具体显示面板
    QLabel *label1;
    QComboBox *comboBox1;
    QLabel *label2;
    QLineEdit *lineEdit2;
    QTextEdit *textEdit;
    QPushButton *OkBtn;
    QPushButton *CancelBtn;



};

#endif // PALETTE_H
